package com.lzx.dormsys.bean;

import com.lzx.dormsys.entity.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * person对象 dms_person
 *
 * @author lzx
 * @date 2021-09-09
 */
public class PersonBean extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 人员编号
     */
    private Long personId;

    /**
     * 姓名
     */
    private String personName;

    /**
     * 性别（0男 1女）
     */
    private Long sex;

    /**
     * 照片
     */
    private String personPhoto;

    /**
     * 所属部门
     */
    private Long deptId;

    /**
     * 联系电话
     */
    private String phoneNum;

    /**
     * 证件号码
     */
    private String cardId;

    /**
     * 身份
     */
    private Long identity;

    public SysDeptBean getDept() {
        return dept;
    }

    public void setDept(SysDeptBean dept) {
        this.dept = dept;
    }

    /**
     * 部门对象
     */
    private SysDeptBean dept;

    public void setPersonId(Long personId) {
        this.personId = personId;
    }

    public Long getPersonId() {
        return personId;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonName() {
        return personName;
    }

    public void setSex(Long sex) {
        this.sex = sex;
    }

    public Long getSex() {
        return sex;
    }

    public void setPersonPhoto(String personPhoto) {
        this.personPhoto = personPhoto;
    }

    public String getPersonPhoto() {
        return personPhoto;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setIdentity(Long identity) {
        this.identity = identity;
    }

    public Long getIdentity() {
        return identity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("personId", getPersonId())
                .append("personName", getPersonName())
                .append("sex", getSex())
                .append("personPhoto", getPersonPhoto())
                .append("deptId", getDeptId())
                .append("createTime", getCreateTime())
                .append("phoneNum", getPhoneNum())
                .append("cardId", getCardId())
                .append("identity", getIdentity())
                .append("dept", getDept())
                .toString();
    }
}
